package test.test6_24;

public class Demo {
    public static void main(String[] args) {
        Student s = new Student(23,"wzx");
        System.out.println(s.age);
        System.out.println(s.name);

    }
}
class Student {
    int age = 10;
    String name = "张三";
    double a = 100;

    public Student(int age) {
        System.out.println("Student age");
        this.age = age;
    }

    public Student() {
    }

    public Student(int age, String name) {
        this(age);
        System.out.println("Student age,name");
        this.name = name;
    }
}
